package com.acminds.fotoporter.persistence.entities;

import java.io.Serializable;
import javax.persistence.*;
import java.sql.Timestamp;
import java.math.BigDecimal;
import java.util.List;


/**
 * The persistent class for the ORDER_REQUEST database table.
 * 
 */
@Entity
@Table(name="ORDER_REQUEST")
public class OrderRequest extends com.acminds.fotoporter.persistence.BaseDTO implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@Column(name="ORDER_REQUEST_ID")
	private int orderRequestId;

	@Column(name="ORDER_DATE")
	private Timestamp orderDate;

	@Column(name="ORDER_NUMBER")
	private String orderNumber;

	@Column(name="ORDER_STATUS")
	private int orderStatus;

	@Column(name="TOTAL_PRICE")
	private BigDecimal totalPrice;

	@Column(name="USER_COMMENT")
	private String userComment;

	//bi-directional many-to-one association to ItemOrdered
	@OneToMany(mappedBy="orderRequest")
	private List<ItemOrdered> itemOrdereds;

	//bi-directional many-to-one association to Location
    @ManyToOne
	@JoinColumn(name="LOCATION_ID")
	private Location location;

	//bi-directional many-to-one association to UserInfo
    @ManyToOne
	@JoinColumn(name="USER_INFO_ID")
	private UserInfo userInfo;

    public OrderRequest() {
    }

	public int getOrderRequestId() {
		return this.orderRequestId;
	}

	public void setOrderRequestId(int orderRequestId) {
		this.orderRequestId = orderRequestId;
	}

	public Timestamp getOrderDate() {
		return this.orderDate;
	}

	public void setOrderDate(Timestamp orderDate) {
		this.orderDate = orderDate;
	}

	public String getOrderNumber() {
		return this.orderNumber;
	}

	public void setOrderNumber(String orderNumber) {
		this.orderNumber = orderNumber;
	}

	public int getOrderStatus() {
		return this.orderStatus;
	}

	public void setOrderStatus(int orderStatus) {
		this.orderStatus = orderStatus;
	}

	public BigDecimal getTotalPrice() {
		return this.totalPrice;
	}

	public void setTotalPrice(BigDecimal totalPrice) {
		this.totalPrice = totalPrice;
	}

	public String getUserComment() {
		return this.userComment;
	}

	public void setUserComment(String userComment) {
		this.userComment = userComment;
	}

	public List<ItemOrdered> getItemOrdereds() {
		return this.itemOrdereds;
	}

	public void setItemOrdereds(List<ItemOrdered> itemOrdereds) {
		this.itemOrdereds = itemOrdereds;
	}
	
	public Location getLocation() {
		return this.location;
	}

	public void setLocation(Location location) {
		this.location = location;
	}
	
	public UserInfo getUserInfo() {
		return this.userInfo;
	}

	public void setUserInfo(UserInfo userInfo) {
		this.userInfo = userInfo;
	}
	
}